package cn.sumpu.app.coolsk.biz;

import javax.servlet.http.HttpServletRequest;

import cn.sumpu.app.coolsk.domain.Trip;
import cn.sumpu.app.coolsk.domain.TripDay;
import cn.sumpu.app.coolsk.exception.AppBusinessException;
import cn.sumpu.toolkit.common.page.PageModel;

public interface TripBiz {
	//
	public void insterTrip(Trip trip)throws AppBusinessException;
	//
	public void insterTripDay(TripDay tripDay)throws AppBusinessException;
	//
	public PageModel getTripListByMid(Integer page,Integer pagesize, String memberId)throws AppBusinessException;
	/**
	 * author BruceZhang
	 * @param pageSize		每页条数
	 * @param page			页码
	 * @return	行程管理
	 * @throws AppBusinessException
	 */
	PageModel getTripList(String title,Integer pageSize, Integer page)throws AppBusinessException;
	int getTripCount() throws AppBusinessException;
	
	//
	public Trip selectTripById(String id)throws AppBusinessException;
	//
	public void updateTrip(Trip trip)throws AppBusinessException;
	//
	public void deleteAllDay(String tripId)throws AppBusinessException;
	public void getIndexTrip(HttpServletRequest request)throws AppBusinessException;
}
